<?php
namespace Club\Model;
use Think\Model;
class InsuranceOrderModel extends Model {
    public $modelName = "保险";
    public $modelIcon = "icon-lemon";
    public $notAuthority = true;
    public $excel = false;
    public $update = false;
    public $detail = false;
    public $delete = false;
    protected $_auto = [
        ["create_time", "time", 1, "function"],
        ["update_time", "time", 2, "function"],
    ];
    protected $_validate = [
        ["id", "require", "ID必须填写!"],
        ["insurance_id", "require", "保险必须填写!"],
        ["user_id", "require", "用户必须填写!"],
        ["name", "require", "姓名必须填写!"],
        ["phone", "require", "电话必须填写!"],
        ["id_number", "require", "身份证号必须填写!"],
    ];
    public $fieldMap = [
        "id"=>[
            "type"=>"input",
            "name"=>"ID",
            "list"=>true,
            "search"=>true,
            "input"=>false,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "insurance_id"=>[
            "type"=>"foreign",
            "name"=>"保险",
            "list"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"insurance,id,name,input",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "user_id"=>[
            "type"=>"foreign",
            "name"=>"用户",
            "list"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"user,id,name,input",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "order_type"=>[
            "type"=>"input",
            "name"=>"订单类型",
            "list"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>false,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "order_id"=>[
            "type"=>"input",
            "name"=>"订单ID",
            "list"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>false,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "name"=>[
            "type"=>"input",
            "name"=>"姓名",
            "list"=>true,
            "search"=>true,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "phone"=>[
            "type"=>"input",
            "name"=>"电话",
            "list"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "id_number"=>[
            "type"=>"input",
            "name"=>"身份证号",
            "list"=>true,
            "search"=>false,
            "input"=>true,
            "required"=>true,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "create_time"=>[
            "type"=>"input",
            "name"=>"创建时间",
            "list"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>false,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
        "update_time"=>[
            "type"=>"input",
            "name"=>"更新时间",
            "list"=>false,
            "search"=>false,
            "input"=>false,
            "required"=>false,
            "detail"=>true,
            "excel"=>false,
            "content"=>"",
            "list_specify"=>"",
            "update_specify"=>"",
            "detail_specify"=>"",
        ],
    ];
}